<html><head>
    <meta charset="utf-8">
    <title>系统设置--基本设置</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="__PUBLIC__/Admin/images/favicon1.ico">
    <!--Basic Styles-->
    <link href="__PUBLIC__/Admin/style/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/Admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/Admin/style/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/typicons.css" rel="stylesheet">
    <link href="__PUBLIC__/Tools/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">


    <script src="__PUBLIC__/Admin/style/jquery_002.js"></script>
    <script src="__PUBLIC__/Admin/style/jquery.js"></script>
    <script src="__PUBLIC__/Admin/style/bootstrap.js"></script>


    <!--<script type="text/javascript" src="__PUBLIC__/Tools/um/third-party/jquery.min.js"></script>-->
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Tools/um/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Tools/um/umeditor.min.js"></script>
    <!--<script type="text/javascript" src="__PUBLIC__/Tools/um/lang/zh-cn/zh-cn.js"></script>-->
</head>
<body>
<!-- 头部 -->
<include file="Common/header"/>
<!-- /头部 -->
<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page 侧边栏 -->
        <include file="Common/sidebar"/>
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <a href="__MODULE__/Set/index">
                            系统设置
                        </a>
                    </li>
                    <li class="active">
                        基本设置
                    </li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">

                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">基本设置</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="" method="post" enctype ="multipart/form-data" id="newsAdd">
                                        
                                        <div class="form-group">
                                            <label for="website" class="col-sm-2 control-label no-padding-right">
                                                网站备案号
                                            </label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="website" placeholder="网站备案号" name="website"  type="text" value="{$sets['website']}">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                        <div class="form-group">
                                            <label for="address" class="col-sm-2 control-label no-padding-right">
                                                公司地址
                                            </label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="address" placeholder="公司地址" name="address"  type="text" value="{$sets['address']}">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                        <div class="form-group">
                                            <label for="seat_machine" class="col-sm-2 control-label no-padding-right">
                                                百信财富热线:
                                            </label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="seat_machine" placeholder="百信财富热线" name="seat_machine"  type="text" value="{$sets['seat_machine']}">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>

                                       

                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                            <button type="submit" class="btn btn-default">保存信息</button>
                                            </div>
                                        </div>

                                    </form>
                                </div>
                            </div>
                            </div>
                            </div>
                            </div>

                            </div>
                            <!-- /Page Body -->
                            </div>
                            <!-- /Page Content -->
                            </div>
                           </div>
<!--Beyond Scripts-->
<script src="__PUBLIC__/Admin/style/beyond.js"></script>
<!--引入layer.js-->
<script src="__PUBLIC__/Admin/layer/layer.js"></script>
</body>
</html>
<script>
    $(document).ready(function () {
        $('form').submit(function (event) {
            var website = $('input[name=website]').val();
            var address = $('input[name=address]').val();
            var seat_machine = $('input[name=seat_machine]').val();
            $.post('__MODULE__/Set/index', {website:website,address:address,seat_machine:seat_machine}, function(result){
                if (result != 'true') {
                    layer.open({
                        type: 1,
                        offset:['100px', '500px'],
                        area: ['300px', '300px'],
                        shadeClose: true, //点击遮罩关闭
                        content: '\<\div style="padding:20px;">'+result+'\<\/div>'
                    });
                } else {
                    window.location.href = '__MODULE__/Index/index';
                }
            });
            event.preventDefault();
            return false;
        });
    });
</script>

